package com.scen.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {
	
	private Integer code;
	private String msg;
	
	public static final ResultObj LOGIN_SUCCESS=new ResultObj(constast.SUCCESS, "登录成功");
	public static final ResultObj LOGIN_ERROR_PASS=new ResultObj(constast.ERROR, "登录失败,用户名或密码不正确");
	
	public static final ResultObj DELETE_SUCCESS=new ResultObj(constast.SUCCESS, "删除成功");
	public static final ResultObj DELETE_ERROR=new ResultObj(constast.ERROR, "删除失败");
	
	public static final ResultObj ADD_SUCCESS=new ResultObj(constast.SUCCESS, "添加成功");
	public static final ResultObj ADD_ERROR=new ResultObj(constast.ERROR, "添加失败");
	
	public static final ResultObj UPDATE_SUCCESS=new ResultObj(constast.SUCCESS, "更新成功");
	public static final ResultObj UPDATE_ERROR=new ResultObj(constast.ERROR, "更新失败");
	
	public static final ResultObj RESET_SUCCESS=new ResultObj(constast.SUCCESS, "重置成功");
	public static final ResultObj RESET_ERROR=new ResultObj(constast.ERROR, "重置失败");
	
	public static final ResultObj DISPATCH_SUCCESS=new ResultObj(constast.SUCCESS, "分配成功");
	public static final ResultObj DISPATCH_ERROR=new ResultObj(constast.ERROR, "分配失败");
	
	public static final ResultObj OPERATE_SUCCESS=new ResultObj(constast.SUCCESS, "操作成功");
	public static final ResultObj OPERATE_ERROR=new ResultObj(constast.ERROR, "操作失败");
	
	public static final ResultObj BACKINPORT_SUCCESS = new ResultObj(constast.SUCCESS,"退货成功");
    public static final ResultObj BACKINPORT_ERROR = new ResultObj(constast.ERROR,"退货失败");
	
}
